<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<% for(int i=0;i<10;i++) {%>
<font color="red">
<%-- <%="HelloWorld"+i --%>
<% out.print("HelloWorld"+i); %>
</font>
<br/>
<%} %>

<% String name="www.xxx.com"; %>
用户名：<%=name %>

<% String path="index.jsp"; %>
<a href="<%=path %>">访问首页</a>

<form action="<%=path %>">
<input type="text"/>
<input type="submit" value="提交">
</form>
</body>
</html>